/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package general;

import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;

/**
 *
 * @author SISTEMAS
 */
@Entity
@Table(name = "rol100", catalog = "netlabV2", schema = "")
@NamedQueries({
    @NamedQuery(name = "Rol100.findAll", query = "SELECT r FROM Rol100 r"),
    @NamedQuery(name = "Rol100.findByRol100nocia", query = "SELECT r FROM Rol100 r WHERE r.rol100nocia = :rol100nocia"),
    @NamedQuery(name = "Rol100.findByRol100cdgo", query = "SELECT r FROM Rol100 r WHERE r.rol100cdgo = :rol100cdgo"),
    @NamedQuery(name = "Rol100.findByRol100desc", query = "SELECT r FROM Rol100 r WHERE r.rol100desc = :rol100desc"),
    @NamedQuery(name = "Rol100.findByRol100load", query = "SELECT r FROM Rol100 r WHERE r.rol100load = :rol100load"),
    @NamedQuery(name = "Rol100.findByRol100fead", query = "SELECT r FROM Rol100 r WHERE r.rol100fead = :rol100fead"),
    @NamedQuery(name = "Rol100.findByRol100lomo", query = "SELECT r FROM Rol100 r WHERE r.rol100lomo = :rol100lomo"),
    @NamedQuery(name = "Rol100.findByRol100femo", query = "SELECT r FROM Rol100 r WHERE r.rol100femo = :rol100femo")})
public class Rol100 implements Serializable {
    @Transient
    private PropertyChangeSupport changeSupport = new PropertyChangeSupport(this);
    private static final long serialVersionUID = 1L;
    @Column(name = "rol100nocia")
    private String rol100nocia;
    @Id
    @Basic(optional = false)
    @Column(name = "rol100cdgo")
    private String rol100cdgo;
    @Column(name = "rol100desc")
    private String rol100desc;
    @Column(name = "rol100load")
    private String rol100load;
    @Column(name = "rol100fead")
    @Temporal(TemporalType.DATE)
    private Date rol100fead;
    @Column(name = "rol100lomo")
    private String rol100lomo;
    @Column(name = "rol100femo")
    @Temporal(TemporalType.DATE)
    private Date rol100femo;

    public Rol100() {
    }

    public Rol100(String rol100cdgo) {
        this.rol100cdgo = rol100cdgo;
    }

    public String getRol100nocia() {
        return rol100nocia;
    }

    public void setRol100nocia(String rol100nocia) {
        String oldRol100nocia = this.rol100nocia;
        this.rol100nocia = rol100nocia;
        changeSupport.firePropertyChange("rol100nocia", oldRol100nocia, rol100nocia);
    }

    public String getRol100cdgo() {
        return rol100cdgo;
    }

    public void setRol100cdgo(String rol100cdgo) {
        String oldRol100cdgo = this.rol100cdgo;
        this.rol100cdgo = rol100cdgo;
        changeSupport.firePropertyChange("rol100cdgo", oldRol100cdgo, rol100cdgo);
    }

    public String getRol100desc() {
        return rol100desc;
    }

    public void setRol100desc(String rol100desc) {
        String oldRol100desc = this.rol100desc;
        this.rol100desc = rol100desc;
        changeSupport.firePropertyChange("rol100desc", oldRol100desc, rol100desc);
    }

    public String getRol100load() {
        return rol100load;
    }

    public void setRol100load(String rol100load) {
        String oldRol100load = this.rol100load;
        this.rol100load = rol100load;
        changeSupport.firePropertyChange("rol100load", oldRol100load, rol100load);
    }

    public Date getRol100fead() {
        return rol100fead;
    }

    public void setRol100fead(Date rol100fead) {
        Date oldRol100fead = this.rol100fead;
        this.rol100fead = rol100fead;
        changeSupport.firePropertyChange("rol100fead", oldRol100fead, rol100fead);
    }

    public String getRol100lomo() {
        return rol100lomo;
    }

    public void setRol100lomo(String rol100lomo) {
        String oldRol100lomo = this.rol100lomo;
        this.rol100lomo = rol100lomo;
        changeSupport.firePropertyChange("rol100lomo", oldRol100lomo, rol100lomo);
    }

    public Date getRol100femo() {
        return rol100femo;
    }

    public void setRol100femo(Date rol100femo) {
        Date oldRol100femo = this.rol100femo;
        this.rol100femo = rol100femo;
        changeSupport.firePropertyChange("rol100femo", oldRol100femo, rol100femo);
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (rol100cdgo != null ? rol100cdgo.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Rol100)) {
            return false;
        }
        Rol100 other = (Rol100) object;
        if ((this.rol100cdgo == null && other.rol100cdgo != null) || (this.rol100cdgo != null && !this.rol100cdgo.equals(other.rol100cdgo))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "roles1.Rol100[ rol100cdgo=" + rol100cdgo + " ]";
    }

    public void addPropertyChangeListener(PropertyChangeListener listener) {
        changeSupport.addPropertyChangeListener(listener);
    }

    public void removePropertyChangeListener(PropertyChangeListener listener) {
        changeSupport.removePropertyChangeListener(listener);
    }
    
}
